import { RouterConfigType } from '../../../types/router';
import { getDTVDDelete, getDTVDList, getDTVDUpdate } from './dtvd';

// 获取数据 : get  提交数据 : post  删除数据 : delete 修改数据 : put
const dtvdConfig: RouterConfigType[] = [
  {
    url: '/dtvd/list',
    method: 'GET',
    callback: getDTVDList,
  },
  {
    url: '/dtvd/update/:id',
    method: 'PUT',
    callback: getDTVDUpdate,
  },
  {
    url: '/dtvd/delete/:id',
    method: 'DELETE',
    callback: getDTVDDelete,
  },
];

export default dtvdConfig;
